#ifndef __VSFAV_ADAPTER_H_INCOUDED__
#define __VSFAV_ADAPTER_H_INCLUDED__

struct vsfav_adapter_t
{
	// private
	struct vsf_stream_adapter_t adapter;

	// public
	struct vsfav_stream_t *in, *out;

	// private
	void (*on_sync)(struct vsfav_adapter_t *adapter);
	struct vsfsm_t sm;
};

vsf_err_t vsfav_adapter_init(struct vsfav_adapter_t *adapter,
		void (*on_inout)(struct vsfav_adapter_t *adapter, bool isin),
		void (*on_sync)(struct vsfav_adapter_t *adapter));

#endif		// __VSFAV_ADAPTER_H_INCLUDED__
